import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jdbc.datasource.DriverManagerDataSource;
import org.springframework.jdbc.datasource.embedded.DataSourceFactory;


public class HibernateUtil {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		 
		ApplicationContext context=new ClassPathXmlApplicationContext("commonApp-servlet.xml");
		DriverManagerDataSource dataSource = (DriverManagerDataSource) context.getBean("dataSource");
		System.out.println(" TST :"+dataSource.getUrl());
	}

}
